﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cricket.LinqModel
{
    public partial class Score
    {
         private IDataRepository _dataObject;
         public Score(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public void Create()
        {
            _dataObject.CreateScore(this);
        }
        public List<CheckMatchIdExistResult> CheckMatchIdExist(int MatchId, int TeamId)
        {
            return _dataObject.CheckMatchIdExist(MatchId,TeamId);
        }
        public void Update()
        {
            _dataObject.UpdateScore(this);
        }
        public List<GetScoreByMatchIdResult> GetScoreByMatchId(int MatchId)
        {
            return _dataObject.GetScoreByMatchId(MatchId);
        }
    }
}
